<html>
<head>
<script type="text/javascript">
	function show_alert()
	{
      var red = document.getElementById("text_name").value;
      //alert(red);		
      window.open("s2.jsp?id=" + red,null,"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no,resizable =0");
	}
</script>
</head>
<body>	
<form action ="s2.jsp" method="post" onsubmit="show_alert()">
	<input type="text" id="text_name" name="txt" >
	<input type="submit" value="submit" >
</form>
</body>
</html>